<?php echo $this->element('body_help');?>
<div class="wrap">
<div id="icon-users" class="icon32"><br></div>
<h2>
	<?php __('Thêm người dùng cho nhóm:'.$groups['name']);?>
	<a class="button add-new-h2" href="<?php echo $this->webroot;?>groups/view/<?php echo $groups['id'];?>"><?php __('Người dùng');?></a>
</h2>
<?php echo $this->Session->flash();?>
<br/>
<div id="pageFormContent">
<div id="form_project">
<div class="users form">
<?php echo $this->Form->create('User',array('controller'=>'users','action'=>'set_add/'.$groups['id']));?>
	<fieldset>
	<?php
		echo $this->Form->input('group_id_view',array('label'=>'Nhóm người sử dụng','value'=>$groups['name'],'readonly'=>'true','class'=>'required'));
		echo $this->Form->input('group_id',array('value'=>$groups['id'],'type'=>'hidden','readonly'=>'true','class'=>'required'));	
	
		echo $this->Form->input('username',array('minlength'=>'4','class'=>'required','label'=>'Tên đăng nhập'));
		echo $this->Form->input('password',array('minlength'=>'6','class'=>'required','label'=>'Mật khẩu'));
		echo $this->Form->input('name',array('class'=>'required','label'=>'Tên Người dùng'));
			echo $this->Form->input('email',array('class'=>'required email','label'=>'Email'));
		//echo $this->Form->input('brith');
		
		echo $this->Form->input('address',array('label'=>'Địa chỉ'));
		echo $datePicker->picker('brith',array('class'=>'data_picker','Ngày Sinh')); 
		echo '<br/>';
		echo $this->Form->input('phone',array('label'=>'Điện thoại'));
		if(isset($classStudent)){
			echo $this->Form->input('class_student_id',array('options'=>$classStudent,array('label'=>'Lớp','class'=>'required')));
		}
		//echo $this->Form->input('class_student', array('label'=>'Lớp'));
		//echo $this->Form->input('temp_pass',array('label'=>'Mật khẩu phục hồi'));
		echo $this->Form->input('actived', array('label'=>'Thực thi'));
		
	?>
	</fieldset>
<?php echo $this->Form->end(__('Thêm mới', true));?>
</div>
<script> Calendar.setup({trigger: "UserBrith", inputField: "UserBrith", onSelect   : function() { this.hide() } }); 

 $(document).ready(function()    {
            $('#UserAddForm').validate();
        });
</script>

<br class="clear">
</div>
<div class="clear"></div>
</div>